package org.huangrui.design.pattern.template;

public class TemplateMethodDemo {
    public static void main(String[] args) {
        Game game1 = new BasketBallGame();
        game1.play();//调用模板方法

        Game game2 = new FootballGame();
        game2.play();//调用模板方法
    }
}
